package com.star.blog.service;

import com.star.blog.common.Result;
import com.star.blog.pojo.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.star.blog.vo.UserVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 聂建强
 * @since 2021-11-20
 */
public interface SysUserService extends IService<SysUser> {

    SysUser findUserById(Long id);

    /**
     * 根据账号密码查询用户
     * @param account
     * @param password
     * @return
     */
    SysUser findUser(String account, String password);

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    Result findUserByToken(String token);

    /**
     * 根据账户查询用户
     * @param account
     * @return
     */
    SysUser findUserByAccount(String account);

    UserVo findUserVoById(Long authorId);
}
